package com.qf.first.pojo.vo;

import com.qf.first.entity.Role;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel("用户实体类")
public class UserRole {
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("用户密码")
    private String password;
    @ApiModelProperty("用户性别")
    private String sex;
    @ApiModelProperty("用户电话号码")
    private String phone;
    @ApiModelProperty("用户角色")
    private Integer roleId;
    @ApiModelProperty("用户角色")
    private Role role;
    @ApiModelProperty("用户图像")
    private String imgUrl;
    @ApiModelProperty("伪删除")
    private Integer is_delete;

    public UserRole() {
    }

    public UserRole(Long userId, String userName, String password, String sex, String phone, Integer roleId, Role role, String imgUrl, Integer is_delete) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.sex = sex;
        this.phone = phone;
        this.roleId = roleId;
        this.role = role;
        this.imgUrl = imgUrl;
        this.is_delete = is_delete;
    }
}
